#include <iostream>
#include <iomanip>
#include <utility>

auto can_be_torn_apart(bool is_solid, double cubed_ratio, double distance_ratio) {
    auto val = cubed_ratio * (is_solid ? 1.26 : 2.455);
    return std::make_pair(val, val < distance_ratio);
}

int main() {
    double cubed_ratio;
    int tag;
    double distance_ratio;

    std::cin >> cubed_ratio >> tag >> distance_ratio;
    
    auto [val, flag] = can_be_torn_apart((tag == 1), cubed_ratio, distance_ratio);
    
    std::cout << std::fixed << std::setprecision(2);
    std::cout << val << " " << (flag ? "^_^" : "T_T");

    return 0;
}
